package com.example.myapplication;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.os.Bundle;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;

public class BreakpointDebuggiActivity extends AppCompatActivity {

    String name;
    String name2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_breakpoint_debuggi);
    }

    @Override
    protected void onStart() {
        name = "张三";
        name2 = name;
        name2.getBytes();
        Log.e("TAG", "onStart: ------------------1" );
        super.onStart();
    }

    @Override
    protected void onStop() {
        name = "李四";
        name2 = name;
        name2.getBytes();
        Log.e("TAG", "onStop: ------------------" );
        super.onStop();
    }

    @Override
    protected void onResume() {
        name = "王五";
        name2 = name;
        name2.getBytes();
        Log.e("TAG", "onResume: ------------------2" );
        super.onResume();
    }

    @Override
    protected void onPause() {
        name = "老六";
        name2 = name;
        name2.getBytes();
        Log.e("TAG", "onPause: ------------------3" );
        super.onPause();
    }

    @Override
    protected void onDestroy() {
        name = "大八";
        name2 = name;
        name2.getBytes();
        Log.e("TAG", "onDestroy: ------------------4" );
        super.onDestroy();
    }

    @Override
    protected void onRestart() {
        name = "九条";
        name2 = name;
        Log.e("TAG", "onRestart: ------------------" );
        super.onRestart();
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull String name, @NonNull Context context, @NonNull AttributeSet attrs) {
        Log.e("TAG", "onCreateView: ------------------0" );
        return super.onCreateView(name, context, attrs);
    }
}